// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** generateExamQuestion POST /api/wx/generate/examQuestion */
export async function generateExamQuestionUsingPost(
  body: API.WxGenerateExamQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>('/api/wx/generate/examQuestion', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** generateInterviewQuestions POST /api/wx/generate/interviewQuestion */
export async function generateInterviewQuestionsUsingPost(
  body: API.WxGenerateInterviewQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>('/api/wx/generate/interviewQuestion', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getCompanyList GET /api/wx/get/companyList */
export async function getCompanyListUsingGet1(options?: { [key: string]: any }) {
  return request<API.BaseResponseListString_>('/api/wx/get/companyList', {
    method: 'GET',
    ...(options || {}),
  })
}

/** getPositionList GET /api/wx/get/positionList */
export async function getPositionListUsingGet1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPositionListUsingGET1Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListString_>('/api/wx/get/positionList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getTechFieldList GET /api/wx/get/techFieldList */
export async function getTechFieldListUsingGet1(options?: { [key: string]: any }) {
  return request<API.BaseResponseListString_>('/api/wx/get/techFieldList', {
    method: 'GET',
    ...(options || {}),
  })
}

/** login POST /api/wx/login */
export async function loginUsingPost(body: API.WxLoginRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseWxLoginUserVO_>('/api/wx/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
